import axios from '@/libs/request/axios'
// 获取附加方案数据 多条件
export const getExtrasProgramListData = (params) => {
    return axios.request({
        url: '/product/extrasProgram/getExtrasProgramListData',
        data: params,
        method: 'post'
    })
}
// 保存获取附加贷方案
export const saveOrUpdatePlan = (params) => {
    return axios.request({
        url: '/product/extrasProgram/saveOrUpdatePlan',
        data: params,
        method: 'post'
    })
}
// 附加贷方案生效
export const effectiveExtrasProgram = (ids, params) => {
    return axios.request({
        url: `/product/extrasProgram/effectiveExtrasProgram/${ids}`,
        data: params,
        method: 'post'
    })
}
// 附加贷方案无效
export const invalidExtrasProgram = (ids, params) => {
    return axios.request({
        url: `/product/extrasProgram/invalidExtrasProgram/${ids}`,
        data: params,
        method: 'post'
    })
}
// 获取产品适用范围
export const getSelectProjectNames = (params) => {
    return axios.request({
        url: '/product/extrasProgram/getSelectProjectNames',
        data: params,
        method: 'post'
    })
}
// 删除附加贷方案
export const deleteById = (id, params) => {
    return axios.request({
        url: `/product/extrasProgram/deleteById/${id}`,
        data: params,
        method: 'delete'
    })
}
// 复制
export const copyPlan = (params) => {
    return axios.request({
        url: `/product/extrasProgram/copyPlan`,
        method: 'POST',
        data: params
    })
}
